<?php foreach ($models as $model) { ?>
    <div class="box-right">
	<?php
	if ($model instanceof GoogleAds) {
	    $this->render('_googleAd', array(
		'model' => $model
	    ));
	} elseif ($model instanceof ImageAds) {
	    $this->render('_imageAd', array(
		'model' => $model
	    ));
	} elseif ($model instanceof FlashAds) {
	    $this->render('_flashAd', array(
		'model' => $model
	    ));
	}
	?>
    </div>
<?php } ?>